package com.xzx.annotation.transaction;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/5/8 16:11
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
        MyService myService = context.getBean(MyService.class);
        myService.insertData();
        context.close();
    }
}
